/*
 * utilxml.h
 *
 *  Created on: 2008-nov-01
 *      Author: magnus
 */

#ifndef __SPACEDEFENDER_UTILXML_H_
#define __SPACEDEFENDER_UTILXML_H_
#include "tinyxml.h"
/*
 *
 */
namespace spacedefender {

class UtilXml {
public:


	static bool GetLongAttr(const TiXmlElement* element, const std::string& attrName,long* data);
	static bool GetDoubleAttr(const TiXmlElement* element, const std::string& attrName, double* data);
	static bool GetStringAttr(const TiXmlElement* element, const std::string& attrName, std::string* data);

private:
	UtilXml() {};
	virtual ~UtilXml() {};

};

}

#endif /* __SPACEDEFENDER_UTILXML_H_ */
